using UnityEngine;

[CreateAssetMenu(fileName = "New GoldPotion", menuName = "Inventory/BasicItem/GoldPotion(金币道具)")]
public class GoldPotion : BasicItem
{
    public int goldAmount; // 增加的金币数量

    public override void BasicApply(Player player)
    {
        player.AddGold(goldAmount); // 增加玩家的金币
        Debug.Log($"玩家获得了 {goldAmount} 枚金币。");
    }
}